<?php
if (!defined('IN_WONDERSHARE'))
{
	die('Hacking attempt');
}
function rsync($domain) 
{
	$allow_domain = array('wondershare.com');
	return 2;
	if(! in_array($domain, $allow_domain)) {
		//not find;
		return 1;
	}
	 $DOMAIN='sitesync.sh '.$domain;
	 $str="/usr/local/wondersync/bin/prolink $DOMAIN";
	 $last_line = system($str,$retval);
	 if ($retval==0) {
	   //ok
	   return 2;
	 }
	 else {
	    //error;
	    return 3;
	 }
}
?>